import request from '@/utils/request'

// 查询在线投诉列表
export function listComplaintOnline(query) {
  return request({
    url: '/services/complaintOnline/list',
    method: 'get',
    params: query
  })
}

// 查询在线投诉详细
export function getComplaintOnline(id) {
  return request({
    url: '/services/complaintOnline/' + id,
    method: 'get'
  })
}

// 新增在线投诉
export function addComplaintOnline(data) {
  return request({
    url: '/services/complaintOnline',
    method: 'post',
    data: data
  })
}

// 修改在线投诉
export function updateComplaintOnline(data) {
  return request({
    url: '/services/complaintOnline',
    method: 'put',
    data: data
  })
}

// 删除在线投诉
export function delComplaintOnline(id) {
  return request({
    url: '/services/complaintOnline/' + id,
    method: 'delete'
  })
}
